#!/bin/bash
OS=`getconf LONG_BIT`
echo $OS
if [ "$OS" == "64" ];then
    OPENSSL_INSTALL_PATH="/usr/lib/x86_64-linux-gnu"
else
    OPENSSL_INSTALL_PATH="/usr/lib/i386-linux-gnu"
fi
if [ ! -e Makefile ]
then
    ./configure LIBS='-ldl' \
        --with-ssl=$OPENSSL_INSTALL_PATH \
	    --disable-shared\
		--disable-ftp\
		--disable-file\
		--disable-ldap\
		--disable-ldaps\
		--disable-dict\
		--disable-telnet\
		--disable-tftp\
		--disable-pop3\
		--disable-smtp\
		--disable-gopher\
		--disable-imap\
		--disable-imaps\
		--disable-rtsp
fi
make
